﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ToolYesOrNoComponent : MonoBehaviour {

    public void Yes()
    {
        if (UIComponentMastermind.instance.Func_Yes != null)
        {
            UIComponentMastermind.instance.Func_Yes();
            UIComponentMastermind.instance.Func_Yes = null;
        }
        this.gameObject.SetActive(false);
    }

    public void No()
    {
        if (UIComponentMastermind.instance.Func_No != null)
        {
            UIComponentMastermind.instance.Func_No();
            UIComponentMastermind.instance.Func_No = null;
        }
        this.gameObject.SetActive(false);
    }

}
